package com.chenju.javastatic.controller;

import com.chenju.javastatic.common.response.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/test")
public class TestController {
    @GetMapping(value = "/add")
    public String add(@RequestParam String name){
        return name + " 返回";
    }

    @GetMapping("/abc")
    public ResponseEntity abc(){
        return ResponseEntity.success("测试消息");
    }
}
